require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'icuke', 'sdk')

SUPPORTED_SDKS = ['3.1', '4.0']

ICuke::SDK.minor_versions.each do |sdk|
  unless SUPPORTED_SDKS.include?(sdk)
    puts "Note: iCuke does not currently support version #{sdk} of the iPhone SDK, skipping"
    next
  end
  
  task :install do
    sh "cd sdk#{sdk} && rake"
  end
  task :clean do
    sh "cd sdk#{sdk} && rake clean"
  end
end

task :default => :install
